//
//  NetWorkTool.h
//  QuickCure37
//
//  Created by 马文星 on 16/6/18.
//  Copyright © 2016年 Demos. All rights reserved.
//  网络工具

#import <Foundation/Foundation.h>

/** 成功回调 */
typedef void(^SuccessCompletedBlock)(id responseObject);

/** 失败回调 */
typedef void(^FailureCompletedBlock)(NSError *error);


@interface NetWorkTool : AFHTTPSessionManager

/** 单例 实例化 */
+ (instancetype)shareManager;

/** 自定义的 GET 请求 */
- (void)GET_RequestWithUrlString:(NSString *)urlString
                          parmas:(NSDictionary *)params
                   successBlock:(SuccessCompletedBlock)success
                    failureBlock:(FailureCompletedBlock)failure;


/** 自定义的 POST 请求 */
- (void)POST_RequestWithUrlString:(NSString *)urlString
                           parmas:(NSDictionary *)params
                    successBlock:(SuccessCompletedBlock)success
                     failureBlock:(FailureCompletedBlock)failure;

@end
